<?php include 'header.php';?>
<script type="text/javascript" src="/ria/default/focus.js"></script>
    <div class="indexTop">
    	<div class="indexTLeft" id="focusImage">
    	</div>
    	<script type="text/javascript">
    	<?php 
    			$pics = array();
    			$titles = array();
    			$urls = array();
    			$index = 0;
    			foreach ($recommendArchives as $item):?>
    			<?php if ($index++>=4) break; ?>
    			<?php 
    				$pics[] = $item['image'];
    				$titles[] = $item['title'];
    				$urls[] = "/archive?id={$item['id']}";
    			?>
    			<?php endforeach;?>
					var speed = 4000;		
					var pics='<?php echo implode('|', $pics);?>';	
					var mylinks='<?php echo implode('|', $urls);?>';
					var texts='<?php echo implode('|', $titles);?>';			
					var focus = new sohuFlash("/ria/default/focus.swf","flashcontent01","305","308","8","#ffffff");
					
					
					
					focus.addParam("quality", "medium");

					focus.addParam("wmode", "opaque");						
					focus.addVariable("speed",speed);
					focus.addVariable("p",pics);	
					focus.addVariable("l",mylinks);
					focus.addVariable("icon",texts);
					focus.write("focusImage");
					</script>
        <div class="indexTMiddle">
        	<div class="topic bg">
            	<h2><?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=1) continue; if ($index++>=1) break;?>
            	<a href="/archive?id=<?php echo $item['id'];?>"><?php echo $item['title'];?></a>
            	<?php endforeach;?>
            	</h2>
                <p>
                <?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=1) continue; $index++; if ($index!=2) continue;?>
            	[<a href="/archive?id=<?php echo $item['id'];?>"><?php echo $item['title'];?></a>]&nbsp;&nbsp;
            	<?php endforeach;?>
            	</p>
            </div>
            <ul>
            	<?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=1) continue; $index++; if ($index<=2 || $index>=10) continue;?>
            	<li>
                	<span class="span_1 bg"><a href="/catalog?id=<?php echo $item['catalog_id'];?>" class="a_066c2b"><?php echo $item['catalog']['name'];?></a>&nbsp;|&nbsp; 
                	<a href="/archive?id=<?php echo $item['id'];?>" title="<?php echo $item['title'];?>"><?php echo mb_substr($item['title'], 0, 18, 'utf-8');?></a></span>
                    <span class="span_2"><?php echo date('Y-m-d', $item['pubtime']);?></span>
                </li>
                <?php endforeach;?>
            </ul>
        </div>
    <div class="indexTRight">
        	<h2 class="bg"><?php echo $catalogList[2]['name'];?>
            	<span class="more"><a href="/catalog?id=2">[更多]</a></span>
            </h2>
        <p>
           <ul class="ulList">
           <?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=2) continue; $index++; if ($index>=5) continue;?>
           <li class="bg"><a href="/archive?id=<?php echo $item['id'];?>" title="<?php echo $item['title'];?>"><?php echo mb_substr($item['title'], 0, 14, 'utf-8');?></a></li>
			<?php endforeach;?>
          </ul>
        	<img src="/ria/default/pic5.jpg" width="206" height="84" /> 
        </p>
      </div>
    </div>
    <div class="centerAd"><img src="/ria/default/ad.jpg" width="980" height="77" /></div>
	<div class="indexCenter">
    	<div class="indexCLeft">
        	<H2 class="bg">
            	<span class="span_1 bg"><?php echo $catalogList[3]['name'];?></span>
          <span class="span_2"><a href="/catalog?id=3">[更多]</a></span> </H2>
            <div class="cont">
            	<div class="CenterTop">
            		<?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=3) continue; if ($index++>=1) break;?>
            		<img src="<?php echo $item['image'];?>" width="100" height="100" />
                	<p><b class="c_066c2b size14" title="<?php echo $item['title'];?>"><?php echo mb_substr($item['title'], 0, 12, 'utf-8');?></b><br />
               	    <?php echo mb_substr(strip_tags($item['memo']), 0, 60, 'utf8');?>...</p>
               	    <?php endforeach;?>
                </div>
                <ul class="ulList">
                	<?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=3) continue; $index++; if ($index<=1 || $index>5) continue;?>
                    <li class="bg"><a href="/archive?id=<?php echo $item['id'];?>" title="<?php echo $item['title'];?>"><?php echo mb_substr($item['title'], 0, 18, 'utf-8');?></a></li>
                    <?php endforeach;?>
                </ul>
            </div>
        </div>
        <div class="indexCMiddle">
        	<h2 class="bg">
            	<span class="span_1 bg"><?php echo $catalogList[4]['name'];?></span>
                <span class="span_2"><a href="/catalog?id=4">[更多]</a></span>
          </h2>
            <div class="cont">
            	<div class="CenterTop">
            		<?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=4) continue; if ($index++>=1) break;?>
                	<img src="<?php echo $item['image'];?>" width="100" height="100" />
                    <p><b class="c_066c2b size14" title="<?php echo $item['title'];?>"><?php echo mb_substr($item['title'], 0, 20, 'utf-8');?></b><br />
           	      <?php echo mb_substr(strip_tags($item['memo']), 0, 100, 'utf8');?>...</p>
               	    <?php endforeach;?>
                </div>
                <ul class="ulList">
                    <?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=4) continue; $index++; if ($index<=1 || $index>5) continue;?>
                    <li class="bg"><a href="/archive?id=<?php echo $item['id'];?>" title="<?php echo $item['title'];?>"><?php echo mb_substr($item['title'], 0, 20, 'utf-8');?></a></li>
                    <?php endforeach;?>
                </ul>
            </div>
        </div>
        <div class="indexCRightBlock">
            <div class="indexCRight">
                <H2 class="bg">
                    <span class="span_1 bg"><?php echo $catalogList[6]['name'];?></span>
                    <span class="span_2"><a href="/catalog?id=6">[更多]</a></span>
              </H2>
                <div class="cont">
                    <ul class="ulList">
                        <?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=6) continue; $index++; if ($index>=7) continue;?>
           <li class="bg"><a href="/archive?id=<?php echo $item['id'];?>" title="<?php echo $item['title'];?>"><?php echo mb_substr($item['title'], 0, 14, 'utf-8');?></a></li>
			<?php endforeach;?>
                    </ul>
                </div>
            </div>
            <div class="rightPj"><a href="/survey"><img src="/ria/default/pj.jpg" width="229" height="59" /></a></div>
        </div>
        
        
</div>
    
    <div class="indexjsfc">
    	<H2 class="bg"><span class="bg"></span>
        <span style="font-weight:normal; display:block; float:right; height:40px; line-height:40px; width:50px;">[<a href="/catalog?id=5">更多</a>]</span>
        </H2>
        <div class="cont">
        	<ul>
        		<?php $index = 0;foreach ($archives as $item): if ($item['catalog_id']!=5) continue; $index++; if ($index>=16) continue;?>
            	<li><a href="/archive?id=<?php echo $item['id'];?>"><img src="<?php echo $item['image'];?>" width="109" height="124" /></a>
           	    <p><a href="/archive?id=<?php echo $item['id'];?>"><?php echo $item['title'];?></a></p></li>
           	    <?php endforeach;?>  </ul>
        </div>
    </div>
    <div class="centerAd"><img src="/ria/default/ad2.jpg" width="980" /></div>
    <div class="links">
    	<h2 class="bg"><span class="bg">友情链接</span></h2>
        
        <table width="100%" border="0" cellpadding="0" cellspacing="8" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  <tr>
    <th scope="col"><a href='http://www.lw.zc/' target='_blank'><img src='/ria/default/in_05.gif' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://www.zz/' target='_blank'><img src='/ria/default/logo.png' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://21.96.10.88/' target='_blank'><img src='/ria/default/zhqb.gif' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://www.zzb.zzb' target='_blank'><img src='/ria/default/logo201206.jpg' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://22.80.35.8/jw123/' target='_blank'><img src='/ria/default/logo.gif' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://21.10.8.66/' target='_blank'><img src='/ria/default/logo17.jpg' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://21.156.80.162/' target='_blank'><img src='/ria/default/logo.jpg' width='126' height='46' border='0'></a></th>
    
 </tr>
 <tr>
    
    <th scope="col"><a href='http://21.64.3.8/' target='_blank'><img src='/ria/default/1002241202536524.gif' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://www.zzb.mtn/' target='_blank'><img src='/ria/default/1002241204181676.gif' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://www.zzb.zzb' target='_blank'><img src='/ria/default/1002241205313993.gif' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://21.64.31.46:8080/' target='_blank'><img src='/ria/default/1111201706304065.jpg' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://21.64.3.102/Index.asp' target='_blank'><img src='/ria/default/1002241206525492.gif' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://21.64.3.9/' target='_blank'><img src='/ria/default/1111201707163263.jpg' width='126' height='46' border='0'></a></th>
    <th scope="col"><a href='http://21.64.31.36' target='_blank'><img src='/ria/default/hqblogo.gif' width='126' height='46' border='0'></a></th>
 </tr>
</table>

       	
        
</div>
</div>

<?php include 'footer.php';?>
